import request from '@/utils/request'
// -------- 内容监管--图片管理 --------

let BASE_ADDRESS = '/work/folder'

// 文件夹并带有图片信息
/* /work/folder/listFolderPhoto */
export const getFolderWithImgList_ByType = (data) => {
    return request({
        url: `${BASE_ADDRESS}/listFolderPhoto`,
        method: 'get',
        params: data
    })
}

// 新建文件夹
/* /work/folder/add */
export const addFolder = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data: data
    })
}

// 删除文件夹
/* /work/folder/remove */
export const deleteFolder_ById = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}

//更新文件夹名称
/* /work/folder/edit */
export const updateFolderName_ById = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data: data
    })
}